package com.product.system.service.impl;

import com.product.system.domain.ArgpTradesmanProducts;
import com.product.system.domain.ArgpTradesmanRetailers;
import com.product.system.domain.EcharVo;
import com.product.system.mapper.ArgpTradesmanRetailersMapper;
import com.product.system.service.ArgpTradesmanRetailersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArgpTradesmanRetailersServiceImpl implements ArgpTradesmanRetailersService {

    @Autowired
    private ArgpTradesmanRetailersMapper argpTradesmanRetailersMapper;

    @Override
    public List<ArgpTradesmanRetailers> getArgpTradesmanRetailers(String name) {
        return argpTradesmanRetailersMapper.getArgpTradesmanRetailers(name);
    }

    @Override
    public boolean addArgpTradesmanRestailers(ArgpTradesmanRetailers argpTradesmanRetailers) {
        return argpTradesmanRetailersMapper.addArgpTradesmanRestailers(argpTradesmanRetailers);
    }

    @Override
    public boolean delArgpTradesmanRetailersById(Integer retailerId) {
        return argpTradesmanRetailersMapper.delArgpTradesmanRetailersById(retailerId);
    }

    @Override
    public boolean updateArgpTradesmanRetailers(ArgpTradesmanRetailers retailers) {
        return argpTradesmanRetailersMapper.updateArgpTradesmanRetailers(retailers);
    }

    @Override
    public List<ArgpTradesmanRetailers> selectRetailersExcel() {
        return argpTradesmanRetailersMapper.selectRetailersExcel();
    }

    @Override
    public List<EcharVo> selectEchar() {
        return argpTradesmanRetailersMapper.selectEchar();
    }

}
